<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ctlCrReporteAltas.ascx.vb" Inherits="Reportes_Controls_ctlCrReporteAltas" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
    rel="stylesheet" type="text/css" />
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
    rel="stylesheet" type="text/css" />
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
    rel="stylesheet" type="text/css" />

&nbsp;<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table class="xFormView" width="100%">
                        <tr>
                            <td class="formviewsubheader" colspan="3" style="height: 21px">
                                <asp:Literal ID="Literal1" runat="server" Text="Parametros de Busqueda"></asp:Literal></td>
                        </tr>
                        <tr>
                            <td align="right" class="formviewlabelcell" style="width: 26%; height: 22px;">
                                <asp:Literal ID="Literal12" runat="server" Text="Incluir Rango de fechas:"></asp:Literal></td>
                            <td align="left" style="height: 22px;" colspan="2">
                                <asp:CheckBox ID="chkIncludeDateRange" runat="server" OnCheckedChanged="chkIncludeDateRange_CheckedChanged" AutoPostBack="True" /></td>
                        </tr>
                        <tr>
                            <td align="right" class="formviewlabelcell" style="width: 26%; height: 20px;">
                                <asp:Literal ID="Literal13" runat="server" Text="Fecha de Inicial:"></asp:Literal></td>
                            <td align="left" style="height: 20px;" colspan="2">
                                &nbsp;&nbsp;
                                <dx:ASPxDateEdit ID="txtStartDate" runat="server" AutoPostBack="True" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                                    CssPostfix="Youthful" OnDateChanged="txtStartDate_DateChanged" ShowShadow="False"
                                    SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
                                    <ValidationSettings ErrorText="Valor no valido">
                                        <ErrorFrameStyle ImageSpacing="4px">
                                            <ErrorTextPaddings PaddingLeft="4px" />
                                        </ErrorFrameStyle>
                                        <RequiredField ErrorText="Ingrese la fecha inicial" IsRequired="True" />
                                    </ValidationSettings>
                                    <CalendarProperties>
                                        <HeaderStyle Spacing="8px" />
                                        <FooterStyle Spacing="3px" />
                                    </CalendarProperties>
                                </dx:ASPxDateEdit>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="formviewlabelcell" style="width: 26%; height: 17px;">
                                <asp:Literal ID="Literal14" runat="server" Text="Fecha de Final:"></asp:Literal></td>
                            <td align="left" style="height: 17px;" colspan="2">
                                &nbsp;&nbsp;
                                <dx:ASPxDateEdit ID="txtEndDate" runat="server" AutoPostBack="True" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                                    CssPostfix="Youthful" OnDateChanged="txtEndDate_DateChanged" ShowShadow="False"
                                    SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
                                    <ValidationSettings ErrorText="Error en la fecha Final" SetFocusOnError="True">
                                        <ErrorFrameStyle ImageSpacing="4px">
                                            <ErrorTextPaddings PaddingLeft="4px" />
                                        </ErrorFrameStyle>
                                        <RegularExpression ErrorText="Fallo la validacion" />
                                        <RequiredField ErrorText="Ingrese Fecha Final" IsRequired="True" />
                                    </ValidationSettings>
                                    <CalendarProperties>
                                        <HeaderStyle Spacing="8px" />
                                        <FooterStyle Spacing="3px" />
                                    </CalendarProperties>
                                </dx:ASPxDateEdit>
                                </td>
                        </tr>
                        <tr>
                            <td align="right" class="formviewlabelcell" style="width: 26%; height: 17px">
                                <dx:ASPxButton ID="btnRefrescar" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                                    CssPostfix="Youthful" OnClick="btnRefrescar_Click" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                                    Text="Mostrar" Visible="False">
                                    <Image Url="~/Images/icons/page_refresh.png">
                                    </Image>
                                </dx:ASPxButton>
                            </td>
                            <td align="left" style="height: 17px" colspan="2">
                                &nbsp; &nbsp;&nbsp;
                                <dx:ASPxLabel ID="lblMensaje" runat="server" ClientVisible="False" ForeColor="#CC0000"
                                    Visible="False" Width="200px">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="formviewlabelcell" colspan="3" style="height: 17px; text-align: left;">
                                &nbsp;&nbsp;<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" DisplayGroupTree="False" EnableDatabaseLogonPrompt="False" EnableParameterPrompt="False" Height="50px" OnInit="CrystalReportViewer1_Init" />
                                <br />
                            </td>
                        </tr>
                    </table>
    </ContentTemplate>
     <Triggers>
     <asp:AsyncPostBackTrigger ControlID="txtStartDate" EventName="DateChanged" />
<asp:AsyncPostBackTrigger ControlID="txtEndDate" EventName="DateChanged" />
         <asp:PostBackTrigger ControlID="CrystalReportViewer1" />
</Triggers>

    
    
</asp:UpdatePanel>
